﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;

namespace StartupSolution.Views.Menus.Selection
{
    public partial class XamOutlookBarXamlSelection : Page
    {
        public XamOutlookBarXamlSelection()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {

        }

        private void XamOutlookBar_SelectedGroupChanged(object sender, Infragistics.Controls.Menus.SelectedGroupChangedEventArgs e)
        {
            // TODO: Implement your custom logic to handle the XamOutlookBar control SelectedGroupChanged event  
            
            if (e.PreviousSelectedOutlookBarGroup != null)
            {
                MessageBox.Show("Previous selected group: " + e.PreviousSelectedOutlookBarGroup.Header + " | New selected group: " + e.NewSelectedOutlookBarGroup.Header);
            }

        }

    }
}
